package com.team.engine.common.exception;

import java.util.EnumMap;

/**
 * 业务层基础异常
 * @author MengLH
 * @data 2010-8-27
 */
public class BaseServiceException extends Exception {

	private static final long serialVersionUID = 1222770292266481546L;

	private EnumMap<?, ?> em;
	
	public EnumMap<?, ?> getEm() {
		return em;
	}

	@Override
	public Throwable fillInStackTrace() {
		new NullPointerException();
		return this;
	}

	public BaseServiceException(){
		super();
	}

	public BaseServiceException(String message){
		super(message);
	}

	/**
	 * 构造带指定详细消息的新异常
	 * @param em 详细消息
	 */
	public BaseServiceException(EnumMap<?, ?> em){
		this.em = em;
	}
	
	public BaseServiceException(Throwable cause){
		super(cause);
	}
	
	
}
